// pages/personal/myhealthTap/myhealthTap.js
var utils = require('../../../utils/util.js');
var httpUrl = getApp().globalData.httpUrl;
Page({

    /**
     * 页面的初始数据
     */
    data: {

    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {
        var that = this;
        var format = utils.formatData(new Date());
        utils.http(httpUrl + "/mobile/member/get_health_state", { data: format}, function(res) {
            if (res.state == 1) {
                console.log(res);
                that.setData({
                    datasList: res.datas.datas_list,
                    stateList: res.datas.state_list
                })


            } else {
                utils.message(res.datas)
            }
        })

    },


})